export const ZBType = [1,2,3]//武器1防具2饰品3
// 数据字典
export const WQType = ["单手剑","巨剑","锤","匕首","法杖","法典","宝珠","弓","战戟"]
export const FJType = ["布甲","皮甲","琐甲","板甲","盾牌","腰带","头饰"]
export const FJBType = ["头部","肩膀","胸部","手套","腿","脚"]
export const SPType = ["戒指","项链","耳环","翅膀"]
// export const ZYType = ["守护星","剑星","治愈星","护法星","杀星","弓星","魔道星","精灵星"]
export const ZYType = [
    {label:'守护星',key:'shouhu'},
    {label:'剑星',key:'jianxing'},
    {label:'治愈星',key:'zhiyu'},
    {label:'护法星',key:'hufa'},
    {label:'杀星',key:'shaxing'},
    {label:'弓星',key:'gongxing'},
    {label:'魔道星',key:'modao'},
    {label:'精灵星',key:'jingling'},
]


// 基础信息
export const sxItemArr = ['icon','name','number','type','business','pinzhi','level']
export const sxItemArrT = ['图标','物品名称','物品编码','物品类型','交易类型','物品品质','使用等级']

// 武器基本信息
export const WQbItemArr = ['bhurt','bspeed','bhit','bwlzm','bwqfy','bmfzfl','bmfmz','bmfzm']
export const WQbItemArrT = ['伤害','速度','命中','物理致命一击','武器防御','魔法增幅力','魔法命中','魔法致命一击']
// 武器额外信息
export const WQeItemArr =  ['ewlgj','ewlzm','egjsd','esfsd','ewlmz','ehp','emp','emfzfl','emfgjl','emfmz','emfzm','epvp+','ewqfy']
export const WQeItemArrT = ['物理攻击','物理致命一击','攻击加速','施法提速','物理命中','生命上限','精神上限','魔法增幅力','魔法攻击力','魔法命中','魔法致命一击','PVP增伤(%)','武器防御']


// 防具基本信息
export const FJbItemArr = ['bwlfy','bmfdk','bhuibi','bgedang','bshjm']
export const FJbItemArrT = ['物理防御','魔法抵抗','回避','格挡','伤害减免']
// 防具额外信息
export const FJeItemArr =  ['edpfy','ewlmz','ewlgj','ewqfy','egedang','echzq','efxsd','efxsj','ewlfy','ehp','emp','epvp-','epvp+','esudu','emfzfl','ejizhong','ehuibi','emfdk','ewlzm-','emfmz','emfgjl']
export const FJeItemArrT = ['盾牌防御','物理命中','物理攻击','武器防御','格挡','仇恨增强','飞行速度','最大飞行时间','物理防御','生命上限','精神上限','PVP减伤(%)','PVP增伤(%)','速度','魔法增幅力','集中','回避','魔法抵抗','减少物理致命一击伤害','魔法命中','魔法攻击力']


// 饰品基本信息
export const SPbItemArr = ['bwlfy','bmfdk','bhuibi','bgedang','bshjm']
export const SPbItemArrT = ['物理防御','魔法抵抗','回避','格挡','伤害减免']
// 饰品额外信息
export const SPeItemArr = ['ewlmz','ewlgj','ewqfy','egedang','echzq','efxsd','efxsj','ewlfy','ehp','emp','epvp-','epvp+','esudu','emfzfl','ejizhong','ehuibi','emfdk','ewlzm','ewlzm-','ewlzmyj-','emfmz','emfgjl','emfzm']
export const SPeItemArrT = ['物理命中','物理攻击','武器防御','格挡','仇恨增强','飞行速度','最大飞行时间','物理防御','生命上限','精神上限','PVP减伤(%)','PVP增伤(%)','速度','魔法增幅力','集中','回避','魔法抵抗','物理致命一击','减少物理致命一击伤害','减少物理致命一击','魔法命中','魔法攻击力','魔法致命一击']

// 套装
export const tzItemArr =  ['egjsd','ewlmz','ewlgj','ewqfy','egedang','echzq','efxsd','efxsj','ewlfy','ehp','emp','epvp-','epvp+','esudu','emfzfl','ejizhong','ehuibi','emfdk','ewlzm','ewlzm-','ewlzmyj-','emfmz','emfgjl','emfzm']
export const tzItemArrT = ['攻击加速','物理命中','物理攻击','武器防御','格挡','仇恨增强','飞行速度','最大飞行时间','物理防御','生命上限','精神上限','PVP减伤(%)','PVP增伤(%)','速度','魔法增幅力','集中','回避','魔法抵抗','物理致命一击','减少物理致命一击伤害','减少物理致命一击','魔法命中','魔法攻击力','魔法致命一击']

const ZBInfo = {
    // 只返回有属性的字段和下标
    zbInfoFunction(data,arr,arrT){
        var sxInfo = {
            list: [],
            tList: []
        }
        arr.forEach((item,index)=>{
            if(data[item]){
                sxInfo.list.push(data[item])
                sxInfo.tList.push(arrT[index])
            }
        })
        // window.console.log(sxInfo)
        return sxInfo
    },
}
export default ZBInfo